package com.chixing.day07_adstract.Interfaces1;

public class CpuTest {
    public static void main(String[] args) {

        //多态：接口


        //父类引用子类对象
        Cpu cpu= (Cpu) new IntelCpu();
        //子类重写父类的方法
        cpu.run();
        cpu.Cpu();

        Cpu cpu2= (Cpu) new IntelCpu();
        cpu2.run();
        cpu2.Cpu();

    }
}
